package com.exercise;
public enum Color implements interfaceA{
    RED(255,0,0),
    BLUE(0,0,255),
    GREEN(0,255,0),
    BLACK(0,0,0),
    YELLOW(255,255,0);
    private double redValue;
    private double greenValue;
    private double blueValue;

    Color(double greenValue, double redValue, double blueValue) {
        this.greenValue = greenValue;
        this.redValue = redValue;
        this.blueValue = blueValue;
    }

    public void show() {
        System.out.println(name()+":\tred: " + redValue + " green: " + greenValue + " blue: " + blueValue);
    }
}
